package com.xk.androiddemo.ui.home;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.xk.androiddemo.model.MonitoringData;
import com.xk.androiddemo.utils.UIUtils;

public class HomeViewModel extends ViewModel {


    MutableLiveData<MonitoringData> monitoringDataMutableLiveData = new MutableLiveData<>();
    public HomeViewModel() {

    }

    public void createData(){


        MonitoringData mockData = UIUtils.generateMockMonitoringData();
        monitoringDataMutableLiveData.postValue(mockData);
    }


}